﻿@{
    ViewBag.Title = "Index";
}
<html>
<head>
    <title>Agregar Alumnos</title>
  

</head>
<body background="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQKGQr5IgbK2IKbeHXM7LFT4nyvLwLpxCpDnNWRIOyHDR5WF8ByRQ">
<div align="center">
    <br/><br/><br/>
<img src="http://render.cooltext.com/RenderedImage.aspx?ButtonId=1041062460&MouseOver=1" />
<br/><br/>
    <form method="post">
    <label>
        <span>Nombre a buscar: </span>
        <input type="text" name="nombre" id="nombre"/>
    </label>
    <input type="submit" />
    </form>
    
    
<table border="3px solid black"  style="font-family:verdana>
    <thead>
        <tr bgcolor="gray">
            <th>Legajo</th>
            <th>Nombre</th>
            <th>Apellido</th>
        </tr>
    </thead>
    <tbody>
        
        @foreach (var item in Model)
        {
               
        <tr>
            <td>@item.legajo</td>
            <td>@item.nombre </td>
            <td>@item.apellido</td>
        </tr>
        
        }
    </tbody>
    <tfoot>
        <tr>
            <td colspan="3" bgcolor="red"><div style="text-align: center">Total: @Model.Count</div></td>
        </tr>
    </tfoot>
</table>

<h2><a href="@Url.Action("Agregar")">Agregar</a></h2>
<h2><a href="@Url.Action("Eliminar")">Eliminar</a></h2>
</div>
    </body>
    </html>